% TEST_ID: LANG-EXPAND-0027
% CATEGORY: language/array-ops/ops
% 测试 - 运算符

function test_minus
    A = [1, 2; 3, 4];
    B = [5, 6; 7, 8];
    C = A - B;
    assert(isequal(C, [-4 -4; -4 -4]));

    A = [1, 2; 3, 4];
    B = [5  6];
    C = A - B;
    assert(isequal(C, [-4 -4; -2 -2]));

    A = [1, 2; 3, 4];
    B = [5];
    C = A - B;
    assert(isequal(C, [-4 -3; -2 -1]));
end


